<template>
  <view class="profile-container">
    <my-userInfo v-if="token"></my-userInfo>
    <my-login v-else></my-login>
  </view>
</template>

<script>
  import mixinBadge from '../../mixins/tabbar-badge.js'
  import {
    mapState
  } from 'vuex';
  export default {
    mixins: [mixinBadge],
    data() {
      return {

      };
    },
    computed: {
      ...mapState('m_user', ['token']),
    }
  }
</script>

<style lang="scss">
page, .profile-container{
  height: 100%;
}
</style>